<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- .trim 修饰符  用来修改空格，双向绑定的时候将空格省略掉 -->
        <input type="text" v-model.trim="msg">
        <!-- 将收集的数据 转为数字 -->
        <input type="text" v-model.number="msg">
        <!-- 当失去焦点后才提交数据   -->
        <input type="text" v-model.lazy="msg">

    </div>
    <script>
        const vm = new Vue({
            el:"#app",
            data(){
                return {
                    msg:''
                }
            }
        })
    </script>
</body>
</html>